import request from '@/utils/request'

// 查询会话-歌曲列表
export function listSTracks(query) {
  return request({
    url: '/sessions/sTracks/list',
    method: 'get',
    params: query
  })
}

// 查询会话-歌曲详细
export function getSTracks(sessionId) {
  return request({
    url: '/sessions/sTracks/' + sessionId,
    method: 'get'
  })
}

// 新增会话-歌曲
export function addSTracks(data) {
  return request({
    url: '/sessions/sTracks',
    method: 'post',
    data: data
  })
}

// 修改会话-歌曲
export function updateSTracks(data) {
  return request({
    url: '/sessions/sTracks',
    method: 'put',
    data: data
  })
}

// 删除会话-歌曲
export function delSTracks(sessionId) {
  return request({
    url: '/sessions/sTracks/' + sessionId,
    method: 'delete'
  })
}
